STEP 7: The user gets three guesses, which means we need to run the loop three times.

Remember, the number inside of range() controls how many times your loop runs.

  • Change the string in the .say() inside of your loop to "Time to guess!".
  • Change the number inside of range() from 5 to 3.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)